home *** CD-ROM | disk | FTP | other *** search
- Path: helios.ffi.no!usenet
- From: peh@norconnect.no (Per Espen Hagen)
- Newsgroups: comp.sys.amiga.applications
- Subject: Re: MUFS and filename length
- Date: 11 Jan 1996 18:53:02 GMT
- Organization: Forsvarets Forskningsinstitutt
- Message-ID: <1776.6584T1123T1030@norconnect.no>
- References: <4cr4hb$21t@glitnir.ifi.uio.no> <811.6581T1409T249@norconnect.no> <4d2hr0$oco@glitnir.ifi.uio.no>
- NNTP-Posting-Host: modem3.ffi.no
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
- Uwe Sigurd Valentin Kubosch <uwek@ifi.uio.no> wrote:
-
- >> Apparently not... 30 characters here. But if you create/rename a file from
- >> *Workbench*, it will be limited to 25, to make room for a ".info"
- >> extension. That's the case for FFS as well.
- >
- > I thought the filenames did not have any limitation except for a total
- > pathnamelength of 128 characters...?
-
- No, there are actually two limitations. One is imposed by dos.library:
-
- | struct FileInfoBlock {
- | LONG fib_DiskKey;
- | LONG fib_DirEntryType; /* Type of Directory. If < 0, then a plain file.
- | * If > 0 a directory */
- | char fib_FileName[108]; /* Null terminated. Max 30 chars used for now */
- | LONG fib_Protection; /* bit mask of protection, rwxd are 3-0. */
- | LONG fib_EntryType;
- | LONG fib_Size; /* Number of bytes in file */
- | LONG fib_NumBlocks; /* Number of blocks in file */
- | struct DateStamp fib_Date;/* Date file last changed */
- | char fib_Comment[80]; /* Null terminated comment associated with file */
- | UWORD fib_OwnerUID; /* owner's UID */
- | UWORD fib_OwnerGID; /* owner's GID */
- | char fib_Reserved[32];
- | };
-
- So 108 characters max for the file name. But FFS (and muFS, and many
- programs like dir or list) have another limit of 30 characters. AFAIK, AFS
- does not have this 30-character limitation. Working around the 108-char
- limit is much more of a problem...
-
- > Only 30 characters?
-
- With FFS or muFS, yes. But if you didn't discover this limit until now,
- it's not *that* much of a problem, is it...?
-
- --
- Per Espen Hagen // Senior Scientist ╖ Image Processing Group ╖ FFI
- peh@ffi.no ╖ http://www.norconnect.no/~peh/ ╖ Tel. +47 63807653/22327351
- \X/
-
-